package test;

import com.bobo.data.DataStore;

import java.util.Arrays;

public class CR {
        public static void main(String[] args) {
        int data[]= DataStore.data;
        px(data);
        System.out.println("args = " + Arrays.toString(data));
    }

        private static void px(int[] data) {
            int leng=data.length;
            for (int i = 1; i <data.length ; i++) {
                int temp=data[i];
                int k=i-1;
                while(k>=0&&data[k]>temp){
                    int kv=data[k];
                    data[k]=data[k+1];
                    data[k+1]=kv;
                    k--;
                }
                data[k+1]=temp;
            }

        }
}
